import React from 'react'
type Props = {
    type: string | string,
    className?: string,
    onClick?:()=>void
}

const Func = (props:Props) => {
  const { type, className, onClick } = props
  return <svg
      className={'icon ' + className}
      aria-hidden="true"
      onClick={onClick}
    >
      <use xlinkHref={`#${type}`}></use>
    </svg>
}
export default Func
